'use strict'

const { TaiSpider } = require('tai-spider');

class MmccantsSpider extends TaiSpider {

    constructor(options = {}) {
        super(options);
        this.name = 'mmccants';
        this.debug = true;
    }

    start_urls() {
        return [{
            link: 'https://www.prismnet.com/~mmccants/tles/classfd.zip',
            download: true,
            options: {
                type: 'zip',
            },
            direct: true,
        }]
    }

    *parse(response) {
        yield {
            index_name: 'tai-file',
            name: 'mmccants'
        }
    }
}

module.exports = MmccantsSpider;